<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script src="/jquery/jquery-2.1.3.js"></script>
    <script src="/common/common.js"></script>
    <script src="/bootstrap/js/bootstrap.min.js"></script></head>
<body>
<div class="container">
    <section class="loginBox row-fluid">
        <section class="span7 middle">
            <h2>你已登录，信息如下<h5><a href="/login.html">返回登录</a></h5></h2>
            <table>
                <tr>
                    <td><span>用户名:  </span></td><td><span id="username"></span></td>
                </tr>
                <tr>
                    <td><span>密码:</span></td><td><span id="password"></span></td>
                </tr>
                <tr>
                    <td><span>邮箱:    </span></td><td><span id="email"></span></td>
                </tr>
                <tr>
                    <td><span>联系电话:</span></td><td><span id="phone"></span></td>
                </tr>
            </table>
        </section>
    </section><!-- /loginBox -->
</div> <!-- /container -->
</body>
<script>
    $(document).ready(init());
    function init(){
        var data = postContent("/doShowData",null,false,null);
        if(data==null){
            window.location.href = "/login.html";
            return;
        }
        $("#username").html(data.username);
        $("#password").html(data.password);
        $("#email").html(data.email);
        $("#phone").html(data.phone);
    }
</script>
</html>
